package com.javase.homework.module2;

//（1）手机卡类 特征：卡类型、卡号、用户名、密码、账户余额、通话时长(分钟)、上网流量 行为：显示（卡号 + 用户名 + 当前余额）
public class PhoneCard {
    private CardType cardType;
    private int phoneNum;
    private String account;
    private String password;
    private double accountBalance;
    private int callTime;
    private double netFlow;

    public PhoneCard() {
    }

    public PhoneCard(CardType cardType, int phoneNum, String account, String password, double accountBalance, int callTime, double netFlow) {
        this.cardType = cardType;
        this.phoneNum = phoneNum;
        this.account = account;
        this.password = password;
        this.accountBalance = accountBalance;
        this.callTime = callTime;
        this.netFlow = netFlow;
    }

    public CardType getCardType() {
        return cardType;
    }

    public void setCardType(CardType cardType) {
        this.cardType = cardType;
    }

    public int getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(int phoneNum) {
        this.phoneNum = phoneNum;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getAccountBalance() {
        return accountBalance;
    }

    public void setAccountBalance(double accountBalance) {
        this.accountBalance = accountBalance;
    }

    public int getCallTime() {
        return callTime;
    }

    public void setCallTime(int callTime) {
        this.callTime = callTime;
    }

    public double getNetFlow() {
        return netFlow;
    }

    public void setNetFlow(double netFlow) {
        this.netFlow = netFlow;
    }

    public void show() {
        System.out.println("卡号为" + phoneNum + "," + "用户名为" + account + "," + "当前余额为" + accountBalance + "元。");
    }
}
